# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
from django.contrib import admin

class BlogPost(models.Model):
	class Meta:
		ordering = ('-timestamp',)
	title = models.CharField(max_length=150)
	body = models.TextField()
	timestamp = models.DateTimeField()

class BlogPostAdmin(admin.ModelAdmin):
	list_display = ('title', 'timestamp')


admin.site.register(BlogPost, BlogPostAdmin)